import { InterfaceProxy } from 'mider'
import { defaultOptions } from './_options'

const iRobot = new InterfaceProxy({
  getAllSchedule: {
    url: '/v1/robot-api/schedules',
    method: 'get'
  },
  createSchedule: {
    url: '/v1/robot-api/schedules',
    method: 'post',
    pathParams: {
      id: String
    }
  },
  schedules: {
    url: '/v1/robot-api/schedules/:id',
    pathParams: {
      id: String
    }
  }
}, [defaultOptions])

export default iRobot
